#ifndef NOTESAREA_H
#define NOTESAREA_H

#include <QSplitter>
#include <QMdiArea>
#include <QListWidget>
#include <QVBoxLayout>

#include "noteitem.h"

enum ListPosition {
	Top,
	Left,
	Bottom,
	Right
};

class NotesArea : public QSplitter
	{
		Q_OBJECT

		public:
			NotesArea(QWidget *parent = 0);

			QMdiArea *area() const;
			ListPosition listPosition() const;
			QListWidget *view() const;
			void switchWidgets(ListPosition);

		private:
			QMdiArea *mdiArea;
			QListWidget *listW;

		public slots:
			void addItem(QListWidgetItem *);
	};

#endif // NOTESAREA_H
